import xgRequest from '../request'

import { IUserInfo } from './type'
import { IDataType } from '../request/type'

export function chatLogin(userInfo: IUserInfo) {
  return xgRequest.post<IDataType>({
    url: '/chat/login',
    data: userInfo
  })
}

export function chatRegister(userInfo: IUserInfo) {
  return xgRequest.post<IDataType>({
    url: '/chat/register',
    data: userInfo
  })
}
